﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StoreAdd.aspx.cs" Inherits="StoreAdd" ValidateRequest="false" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../css/plugins/iCheck/custom.css" rel="stylesheet">
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/jquery.form.js"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

    <link href="../50/imgup.css" rel="stylesheet" />
    <link href="../50/style.css" rel="stylesheet" />
    <script src="../50/function.js"></script>

    <script src="../../js/swfupload/ligerBuild.min.js" type="text/javascript"></script>
    <script type='text/javascript' src="../../js/swfupload/swfupload.js"></script>
    <script type='text/javascript' src="../../js/swfupload/swfupload.queue.js"></script>
    <script src="../../js/swfupload/newaddswfupload.handlers.js" type="text/javascript"></script>
    <link href="../../js/swfupload/ligerui-dialog.css" rel="stylesheet" type="text/css" />

    <script>

        $(function () {
            var imgurl = document.getElementById("txtImgUrl").value;
            if (imgurl != "") {
                $(".imgbox").empty();
                $(".imgbox").append("<img src=\"" + imgurl + "\" />");
            }
        });
    </script>

</head>
<body class="gray-bg">
    <form id="form1" runat="server" class="form-horizontal m-t">
        <div class="wrapper animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">

                    <div class="ibox-content">
                        <div class="panel-body">
                            <div class="form-group">


                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">门店名称：</label>
                                    <div class="col-sm-6">
                                        <asp:TextBox ID="txtSname" runat="server" type="text" class="form-control" required=""
                                            aria-required="true" HintTitle="门店名称" HintInfo="请输入门店名称"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">营业时间：</label>
                                    <div class="col-sm-2">
                                        <asp:TextBox ID="txtSstime" runat="server" CssClass="laydate-icon form-control layer-date" ></asp:TextBox>
                                    </div>
                                    <div style="height:1px;">至</div>
                             <div class="col-sm-2" style="margin-left:15px;">
                                 <asp:TextBox ID="txtSetime" runat="server" CssClass="laydate-icon form-control layer-date"></asp:TextBox>
                             </div>
                                </div>

                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">联系电话：</label>
                                    <div class="col-sm-6">
                                        <asp:TextBox ID="txtStel" runat="server" type="text" class="form-control" required=""
                                            aria-required="true" HintTitle="联系电话" HintInfo="请输入店铺联系电话"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">门店图片：</label>
                                    <div class="col-sm-5">
                                        <div class="imgbox" style="height: 80%; width: 80%;">
                                        </div>
                                        <asp:TextBox ID="txtImgUrl" runat="server" class="form-control" Style="display: none;"></asp:TextBox>
                                        <a href="javascript:void(0);" class="files" style="margin-left: 20px;">
                                            <input type="file" id="FileUpload" name="FileUpload" onchange="SingleUpload('txtImgUrl','FileUpload')" /></a>
                                        <a class="uploading">正在上传，请稍候...</a>
                                    </div>
                                </div>


                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">详细地址：</label>
                                    <div class="col-sm-6">
                                        <asp:TextBox ID="txtSaddresse" runat="server" type="text" class="form-control" required=""
                                            aria-required="true"
                                            MaxLength="50" HintTitle="详细地址" HintInfo="请输入店详细地址"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="col-sm-12" style="margin-top: 1em;">
                                    <label class="col-sm-2 control-label">店铺简介：</label>
                                    <div class="col-sm-6">
                                        <asp:TextBox ID="txtSintroduce" runat="server" HintTitle="请输入店铺简介" class="form-control" HintInfo="店铺简介" required="" aria-required="true" TextMode="MultiLine" Height="330px" Width="800px"></asp:TextBox>
                                    </div>
                                </div>

                                <div class="form-group" style="margin-top: 2em;">
                                    <div class="col-sm-8 col-sm-offset-3" style="margin-top: 2em;">
                                        <asp:Button ID="Button1" runat="server" Text="确定" class="btn btn-primary" OnClick="Button1_Click" />
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>


    <!-- 全局js -->



    <!-- 自定js -->
    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">

        if (typeof (Close) != "undefined") {
            layer.msg('保存成功，正在返回', {
                time: 2000, //20s后自动关闭 
            }, function () {
                var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                parent.layer.close(index); //执行关闭
            });
        }


    </script>
    <script src="../Js/plugins/layer/laydate/laydate.js"></script>

    <script type="text/javascript">
        laydate.skin('yalan')
        var start = {
            elem: "#txtSstime",
            format: "YYYY/MM/DD hh:mm:ss",
            max: "2099-06-16 23:59:59",
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas;
                end.start = datas
            }
        };
        var end = {
            elem: "#txtSetime",
            format: "YYYY/MM/DD hh:mm:ss",
            max: "2099-06-16 23:59:59",
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas;
                end.start = datas
            }
        };
        laydate(start);
        laydate(end);

    </script>

</body>
</html>
